<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

$route['default_controller']	 = "user";
$route['404_override']			 = '';

$route['admin']			 = 'admin/index';
$route['admin/login']	 = 'admin/index';
$route['admin/logout']	 = 'admin/logout';
$route['admin/login/validate_credentials'] = 'admin/validate_credentials';

$route['admin/home']				 = 'admin_home/index';
$route['admin/test/delete/(:any)'] = 'admin_test/delete/$1';
$route['admin/test']					 = 'admin_test/index';
$route['admin/test/(:any)']		 = 'admin_test/index/$1';
$route['admin/test/simpan']		 = 'admin_test/add';
$route['admin/test/ubah']			 = 'admin_test/update';

$route['admin/soal/delete/(:any)']	 = 'admin_soal/delete/$1';
$route['admin/soal']				 = 'admin_soal/index';
$route['admin/soal/simpan']		 = 'admin_soal/add';
$route['admin/soal/ubah']		 = 'admin_soal/update';
$route['admin/soal/kunci']		 = 'admin_soal/kunci_add';
$route['admin/kunci/delete/(:any)'] = 'admin_soal/kunci_delete/$1';

$route['admin/penilaian/(:any)/(:any)']	 = 'admin_penilaian/index/$1/$2';
$route['admin/penilaian']				 = 'admin_penilaian/index';
$route['admin/penilaian/(:any)']	 = 'admin_penilaian/index/$1';

$route['admin/user']				 = 'admin_user/index';
$route['admin/user/delete/(:any)'] = 'admin_user/delete/$1';
$route['admin/user/(:any)']		 = 'admin_user/index/$1';
$route['admin/user/simpan']	 = 'admin_user/add';
$route['admin/user/ubah']		 = 'admin_user/update';

$route['admin/kata']								 = 'admin_kata/index';
$route['admin/kata/filter/delete/(:any)']		 = 'admin_kata/filter_delete/$1';
$route['admin/kata/simbol/delete/(:any)']	 = 'admin_kata/simbol_delete/$1';
$route['admin/kata/sinonim/delete/(:any)']	 = 'admin_kata/sinonim_delete/$1';
$route['admin/kata/simpan_filter']				 = 'admin_kata/add_filter';
$route['admin/kata/ubah_filter']				 = 'admin_kata/update_filter';
$route['admin/kata/simpan_simbol']			 = 'admin_kata/add_simbol';
$route['admin/kata/ubah_simbol']				 = 'admin_kata/update_simbol';
$route['admin/kata/simpan_sinonim']		 = 'admin_kata/add_sinonim';
$route['admin/kata/ubah_sinonim']			 = 'admin_kata/update_sinonim';

$route['admin/grafik']				 = 'admin_penilaian/grafik';

$route['user']					 = 'user/index';
$route['user/login']			 = 'user/index';
$route['user/logout']		 = 'user/logout';
$route['user/login/validate_credentials'] = 'user/validate_credentials';

$route['user/test']		 = 'user_test/index';
$route['user/selesai']	 = 'user_test/simpan_jawaban';


$route['main']	 = 'main/index';


/* End of file routes.php */
/* Location: ./application/config/routes.php */